<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" media="screen" href="../../css/bootstrap.min.css">
</head>
<body>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
	<form class="form-horizontal" onsubmit="return false" id="form">
		<fieldset>
			<div class='form-group'>
				<label class='col-md-2 control-label'>accountid</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='accountid' type='text' name='accountid' id='accountid' data-bv-notempty='true' data-bv-notempty-message='accountid 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>openId</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='openId' type='text' name='openId' id='openId' data-bv-notempty='true' data-bv-notempty-message='openId 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>nickname</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='nickname' type='text' name='nickname' id='nickname' data-bv-notempty='true' data-bv-notempty-message='nickname 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>sex</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='sex' type='text' name='sex' id='sex' data-bv-notempty='true' data-bv-notempty-message='sex 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>language</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='language' type='text' name='language' id='language' data-bv-notempty='true' data-bv-notempty-message='language 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>city</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='city' type='text' name='city' id='city' data-bv-notempty='true' data-bv-notempty-message='city 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>province</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='province' type='text' name='province' id='province' data-bv-notempty='true' data-bv-notempty-message='province 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>country</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='country' type='text' name='country' id='country' data-bv-notempty='true' data-bv-notempty-message='country 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>headImageUrl</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='headImageUrl' type='text' name='headImageUrl' id='headImageUrl' data-bv-notempty='true' data-bv-notempty-message='headImageUrl 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>subscribeTime</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='subscribeTime' type='text' name='subscribeTime' id='subscribeTime' data-bv-notempty='true' data-bv-notempty-message='subscribeTime 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>subscribe</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='subscribe' type='text' name='subscribe' id='subscribe' data-bv-notempty='true' data-bv-notempty-message='subscribe 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>realName</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='realName' type='text' name='realName' id='realName' data-bv-notempty='true' data-bv-notempty-message='realName 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>idCard</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='idCard' type='text' name='idCard' id='idCard' data-bv-notempty='true' data-bv-notempty-message='idCard 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>phoneNo</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='phoneNo' type='text' name='phoneNo' id='phoneNo' data-bv-notempty='true' data-bv-notempty-message='phoneNo 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>patientCount</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='patientCount' type='text' name='patientCount' id='patientCount' data-bv-notempty='true' data-bv-notempty-message='patientCount 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>accountStatus</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='accountStatus' type='text' name='accountStatus' id='accountStatus' data-bv-notempty='true' data-bv-notempty-message='accountStatus 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>patientid</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='patientid' type='text' name='patientid' id='patientid' data-bv-notempty='true' data-bv-notempty-message='patientid 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>times</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='times' type='text' name='times' id='times' data-bv-notempty='true' data-bv-notempty-message='times 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>userid</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='userid' type='text' name='userid' id='userid' data-bv-notempty='true' data-bv-notempty-message='userid 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>cardtype</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='cardtype' type='text' name='cardtype' id='cardtype' data-bv-notempty='true' data-bv-notempty-message='cardtype 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>codecm1</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='codecm1' type='text' name='codecm1' id='codecm1' data-bv-notempty='true' data-bv-notempty-message='codecm1 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>codecm2</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='codecm2' type='text' name='codecm2' id='codecm2' data-bv-notempty='true' data-bv-notempty-message='codecm2 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>codecm3</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='codecm3' type='text' name='codecm3' id='codecm3' data-bv-notempty='true' data-bv-notempty-message='codecm3 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>xzz</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='xzz' type='text' name='xzz' id='xzz' data-bv-notempty='true' data-bv-notempty-message='xzz 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>gzdw</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='gzdw' type='text' name='gzdw' id='gzdw' data-bv-notempty='true' data-bv-notempty-message='gzdw 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>ybrgx</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='ybrgx' type='text' name='ybrgx' id='ybrgx' data-bv-notempty='true' data-bv-notempty-message='ybrgx 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>hostCode</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='hostCode' type='text' name='hostCode' id='hostCode' data-bv-notempty='true' data-bv-notempty-message='hostCode 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>famtime</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='famtime' type='text' name='famtime' id='famtime' data-bv-notempty='true' data-bv-notempty-message='famtime 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>csrq</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='csrq' type='text' name='csrq' id='csrq' data-bv-notempty='true' data-bv-notempty-message='csrq 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>age</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='age' type='text' name='age' id='age' data-bv-notempty='true' data-bv-notempty-message='age 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>cardno</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='cardno' type='text' name='cardno' id='cardno' data-bv-notempty='true' data-bv-notempty-message='cardno 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>responsetype</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='responsetype' type='text' name='responsetype' id='responsetype' data-bv-notempty='true' data-bv-notempty-message='responsetype 不能为空'>
				</div>
			</div>


			<div class="form-actions">
				<div class="row" align="center">
					<div class="col-md-12">
					    <button class="btn btn-primary" onclick="location.href='appAccountList.html'">返回</button>
						<button class="btn btn-primary" type="submit" onclick="add()">
							<i class="fa fa-save"></i> 保存
						</button>
					</div>
				</div>
			</div>

		</fieldset>
	</form>
</div>
	<script type="text/javascript" src="../../js/libs/jquery-2.1.1.min.js"></script>
	<script type="text/javascript" src="../../js/jq.js"></script>
	<script type="text/javascript" src="../../js/plugin/bootstrapvalidator/bootstrapValidator.min.js"></script>
	<script type="text/javascript" src="../../js/common.js"></script>
	<script type="text/javascript" src="../../layui/layui.js"></script>
	<script type="text/javascript">
		layui.use(['layer','laydate'], function(){
		    var layer = layui.layer;
		});
		
		function add() {
			$('#form').bootstrapValidator();
			var bootstrapValidator = $("#form").data('bootstrapValidator');
			bootstrapValidator.validate();
		    if(!bootstrapValidator.isValid()){
			   return;
		    }
		    
		    var formdata = $("#form").serializeObject();

			$.ajax({
				type : 'post',
				url : '/appAccounts',
				contentType: "application/json; charset=utf-8",  
				data : JSON.stringify(formdata),
				success : function(data) {
					layer.msg("添加成功", {shift: -1, time: 1000}, function(){
                        location.href = "appAccountList.html";
                    });
				}
			});
		}
		
	</script>
</body>
</html>
